#!/usr/bin/env python
# encoding: utf-8
# CONFIDENTIAL --- CUSTOM STUDIOS
#
# @license      :  (C) Copyright 2013-2019
#
# @contact      :  weiweiqiao@126.com
#
# @Programmer   :  qiaowei
#
# @file         :  worker_02.py
#
# @Start Date   :  2020/8/8 0008 21:28
#
# @Last Update  :  2020/8/8 0008 21:28
#
# @desc         :


from threading import Thread


class Worker(Thread):
    def __init__(self, thread_id: str):
        Thread.__init__(self)
        self.__thread_id = thread_id

    @property
    def thread_id(self):
        """
        返回线程id
        Returns:

        """
        return self.__thread_id

    @thread_id.setter
    def thread_id(self, value: str):
        self.__thread_id = value

    def run(self):
        print()
